package CTRLayer;

import java.util.ArrayList;
import DBLayer.DBTrainingProgram;
import ModelLayer.TrainingProgram;

public class TrainingProgramCTR
{
	public ArrayList<TrainingProgram> findAllTrainingPrograms()
    {
		DBTrainingProgram dbTrainingProgram = new DBTrainingProgram();
        ArrayList<TrainingProgram> allTrainingPrograms = new ArrayList<TrainingProgram>();
        allTrainingPrograms = dbTrainingProgram.getAllTrainingProgram(false);
        return allTrainingPrograms;
    }
	
	public TrainingProgram findTrainingProgramID(int TrainingProgramID)
	{
		DBTrainingProgram dbTrainingProgram = new DBTrainingProgram();
		return dbTrainingProgram.searchTrainingProgramID(TrainingProgramID, true);
	}
}